﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MODEL;
using DAL;

namespace Service
{
    public class ElementService : IElementService
    {       
        public async Task<IEnumerable<ElementInfo>> QueryElementsAsync(string stationType = null)
        {
            return await ElementDAL.QueryElementsAsync(stationType);
        }

        public async Task<int> InsertElementInfoAsync(ElementInfo element)
        {
            return await ElementDAL.InsertElementInfoAsync(element);
        }

        public async Task<int> DeleteElementInfoAsync(List<int> elementIds)
        {
            return await ElementDAL.DeleteElementInfoAsync(elementIds);
        }
    }
}
